

<!-- Some of the code below are copied from http://www.java2s.com/Code/Java/JSP/JSPXMLandXSLTtransform.htm -->

<%@ taglib uri="http://java.sun.com/jsp/jstl/xml"  prefix="x" %>
<%@ taglib uri="http://java.sun.com/jstl/core_rt" prefix="c" %> 
<%
	String itemsUrl = request.getParameter( "url" );
	itemsUrl = "http://api.powerhousemuseum.com"+itemsUrl;
	//itemsUrl2= "http://api.powerhousemuseum.com/api/v1/category/45/items/xml/?api_key=90b0723f9926ce3";
	//out.println(itemsUrl);
%>
<html >
  <head>
    <title>Using a Named Template with Global Parameters</title>
  </head>

  <body>
    <c:import url="<%=itemsUrl%>" var="inputDoc" />

    <c:import url="http://localhost:8080/wsd_assign2/item.xsl" var="stylesheet" />

    <x:transform xml  = "${inputDoc}" xslt = "${stylesheet}">
      <x:param name="ageParam"  value="49" />
    </x:transform>
  </body>
</html>